package com.ice.work.moment.crawler.dao.share;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ice.work.moment.facade.crawler.model.Share;

import java.util.Collection;
import java.util.List;

/**
 * @Description resource dao
 * @Author DELL
 * @Create 2019-01-10
 * @Since 1.0.0
 */
@SuppressWarnings("all")
public interface IShareRepository {

    /**
     * 通过stockCode查询
     *
     * @param stockCode
     * @param dataStatus
     * @return
     */
    Share findByShareCodeAndDataStatus(String stockCode, Integer dataStatus);
    /**
     * 通过stockCodes查询
     *
     * @param stockCode
     * @param dataStatus
     * @return
     */
    List<Share> findByShareCodeInAndDataStatus(Collection<String> stockCodes, Integer dataStatus);
    /**
     * 分页查询
     *
     * @param page
     * @param resourceRequest
     * @return
     */
    IPage<Share> page(IPage<Share> page);

    /**
     * 通过Id查询
     *
     * @param stockCode
     * @param dataStatus
     * @return
     */
    Share findByIdAndDataStatus(Long id, Integer dataStatus);


}
